#!/usr/bin/env bash

NOWDIR=$(realpath $(cd "$(dirname "$0")"; pwd))

cd $NOWDIR
./sh/yarn.sh

source src/config/config.sh
echo HMR_PORT=$HMR_PORT


NPX="npx"


cd $NOWDIR/src
rm config.coffee
ln -s config/dev.config.coffee config.coffee
./import.coffee > .import.js

cd $NOWDIR
$NPX yarn run start
